<template>
  <div class="nav-bar"> 
      <div class="left"><slot name="left"></slot></div>
      <div class="center"><slot name="center"></slot></div>
      <div class="right"><slot name="right"></slot></div>
  </div>
</template>

<script>
export default {

}
</script>

<style>
    .nav-bar{
        display: flex;
        line-height: 44px; 
        height: 44px;
        text-align: center;
        

        /* 在这里写死不好,因为有些地方不是这样的背景颜色 */
    }

    .left,.right{
        width: 80px;
    }

    .center{
        flex: 1;
    }
</style>